package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * UpdateList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "update_list", catalog = "imcdbserver", uniqueConstraints = @UniqueConstraint(columnNames = "product"))
public class UpdateList implements java.io.Serializable {

	// Fields

	private UpdateListId id;

	// Constructors

	/** default constructor */
	public UpdateList() {
	}

	/** full constructor */
	public UpdateList(UpdateListId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "product", column = @Column(name = "product", unique = true, length = 64)),
			@AttributeOverride(name = "version", column = @Column(name = "version", length = 64)),
			@AttributeOverride(name = "lastVersion", column = @Column(name = "last_version", nullable = false, length = 64)),
			@AttributeOverride(name = "url", column = @Column(name = "url", length = 16777215)),
			@AttributeOverride(name = "note", column = @Column(name = "note", length = 16777215)) })
	public UpdateListId getId() {
		return this.id;
	}

	public void setId(UpdateListId id) {
		this.id = id;
	}

}